package com.pxst.bank.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pxst.bank.entity.SysBankServiceTimeEntity;
import com.pxst.bank.req.ServiceTimeAddReq;
import com.pxst.bank.req.ServiceTimeReq;
import com.pxst.bank.resp.SysBankServiceTimeResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * bk120（sys_bank_service_time）
 */
@Mapper
public interface SysServiceTimeMapper extends BaseMapper<SysBankServiceTimeEntity> {
    /**
     * 多表联查
     * @param serviceTimeReq 条件查询条件
     * @return
     */
    List<SysBankServiceTimeResp> selectJoin(ServiceTimeReq serviceTimeReq);

    /**
     * 统计数量
     * @return
     */
    @Select("select count(*) from sys_bank_service_time")
    Integer count();

    /**
     * 新增
     * @param sysBankServiceTimeEntity
     * @return
     */
//    SysBankServiceTimeEntity add(SysBankServiceTimeEntity sysBankServiceTimeEntity);
}
